package cn.jiyun.mapper;


import cn.jiyun.pojo.DTO.OrdersDto;
import cn.jiyun.pojo.MassagerTousu;
import cn.jiyun.pojo.cokpit.Orders;
import cn.jiyun.pojo.function.BackstageCount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;


/**
 * 订单表(Orders)表数据库访问层
 *
 * @author makejava
 * @since 2024-12-20 09:38:33
 */
@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    Integer getUnansweredOrders();

    Integer getOrderComplete();

    Integer getOrderTotal();

    List<Integer> getDataMorning();

    List<Integer> getDataAfternoon();

    List<String> getDatesInRange(OrdersDto ordersDto);

    List<String> getOrderCountsInRange(OrdersDto ordersDto);

    List<String> getOrderCountsInRange2(OrdersDto ordersDto);

    BigDecimal getInflow();

    List<BigDecimal> getTotalAmountInRange(OrdersDto ordersDto);

    List<BigDecimal> getTotalDriverEarningsInRange(OrdersDto ordersDto);

    List<BigDecimal> getTheTotalWriteOffAmountWithinTheRange(OrdersDto ordersDto);

    List<BigDecimal> getEarningsAmount(OrdersDto ordersDto);

    List<BigDecimal> getAvgTotalAmount(OrdersDto ordersDto);

    List<BigDecimal> getAvgDriverIncome(OrdersDto ordersDto);

    List<BigDecimal> getTotalCancelMoney(OrdersDto ordersDto);

    List<BigDecimal> getAvgEarnings(OrdersDto ordersDto);

    List<Integer> getLoginStatistics(OrdersDto ordersDto);

    Double getEarnings();

    List<Orders> findAllList();

    List<MassagerTousu> getComplaint();

    List<String> findDateAll();

    List<Orders> findList(OrdersDto ordersDto);
}

